<?php
include('MessageAction.class.php');
class IndexAction extends Action {
    public function index(){             //回复文本信息
        //dump($_COOKIE['wid']);
       $wechatObj = new MessageAction();
       if (!isset($_GET['echostr'])) {
        $wechatObj->responseMsg();
    }else{
        $wechatObj->valid();
    }     
    }
}
?>